package com.example.supplychainbackend.dao.warehouse;


import com.example.supplychainbackend.entity.warehouse.OutboundBillEntity;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface OutboundBillDao extends JpaRepository<OutboundBillEntity, Long> {
    Optional<OutboundBillEntity> findByBatch(String batch);
    Optional<OutboundBillEntity> findByStockId(String stockId);

    List<OutboundBillEntity> findAllByStockId(String stockId);
}